home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / c / xmmlrg.exe / XMM.H < prev    next >
C/C++ Source or Header  |  1991-08-02  |  1KB  |  39 lines

  1. /*
  2.  *    XMS Driver C Interface Routine Definitions
  3.  *
  4.  *    Copyright (c) 1988, Microsoft Corporation
  5.  */
  6.  
  7. struct    XMM_Move {
  8.     unsigned long    Length;
  9.     unsigned short    SourceHandle;
  10.     unsigned long    SourceOffset;
  11.     unsigned short    DestHandle;
  12.     unsigned long    DestOffset;
  13. };
  14.  
  15. unsigned    XMM_Installed(void);
  16.  
  17. long    XMM_Version(void);
  18. long    XMM_RequestHMA(unsigned Space_Needed);
  19. long    XMM_ReleaseHMA(void);
  20. long    XMM_GlobalEnableA20(void);
  21. long    XMM_GlobalDisableA20(void);
  22. long    XMM_EnableA20(void);
  23. long    XMM_DisableA20(void);
  24. long    XMM_QueryA20(void);
  25. long    XMM_QueryLargestFree(void);
  26. long    XMM_QueryTotalFree(void);
  27. long    XMM_AllocateExtended(unsigned SizeK);
  28. long    XMM_FreeExtended(unsigned Handle);
  29. long    XMM_MoveExtended(struct XMM_Move *pMoveDescription);
  30. long    XMM_LockExtended(unsigned Handle);
  31. long    XMM_UnLockExtended(unsigned Handle);
  32. long    XMM_GetHandleLength(unsigned Handle);
  33. long    XMM_GetHandleInfo(unsigned Handle);
  34. long    XMM_ReallocateExtended(unsigned Handle, unsigned NewSizeK);
  35. long    XMM_RequestUMB(unsigned SizeP);
  36. long    XMM_ReleaseUMB(unsigned Segment);
  37.  
  38. #define    XMSERROR(x)    (char)((x)>>24)
  39.